package com.jshop.seckill;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;


@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@MapperScan(basePackages = {"com.jshop.seckill.mapper"})
@EnableScheduling   //开启对定时任务的支持
@EnableAsync        //开启对异步任务的支持
public class JshopSeckillApplication {

    public static void main(String[] args) {
        SpringApplication.run(com.jshop.seckill.JshopSeckillApplication.class, args);
    }

}